package com.it135.citytraffic.service.impl;

import com.it135.citytraffic.pojo.entity.RoadCache;
import com.it135.citytraffic.mapper.RoadCacheMapper;
import com.it135.citytraffic.service.IRoadCacheService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;


@Service
public class RoadCacheServiceImpl extends ServiceImpl<RoadCacheMapper, RoadCache> implements IRoadCacheService {
    private final RoadCacheMapper roadCacheMapper;

    public RoadCacheServiceImpl(RoadCacheMapper roadCacheMapper) {
        this.roadCacheMapper = roadCacheMapper;
    }

    @Override
    public RoadCache findMin() {
        return roadCacheMapper.findMin();
    }

    @Override
    public RoadCache findMax() {
        return roadCacheMapper.findMax();
    }
}
